package com.ld.poetry.aigc.iflycode.gclu.errorcorrection;

import java.io.FileReader;
import java.io.IOException;

public class ExceptionHandlingChallenge {
    public static void main(String[] args) {
        FileReader fileReader = null;
        try {
            fileReader = new FileReader("example.txt");
            char[] buffer = new char[1024];
            fileReader.read(buffer);
            fileReader.close();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (fileReader != null) {
                fileReader.close();
            }
        }
        int result = Integer.parseInt("123");
        System.out.println("Parsed result: " + result);
    }
}